package com.recycle.recycledemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.recycle.recycledemo.recycle.RecycleActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    private Button btnRecycle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        btnRecycle = findViewById(R.id.btn_recycle);
        btnRecycle.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        Intent intent ;
        switch (view.getId()){
            case R.id.btn_recycle:
                intent = new Intent(MainActivity.this, RecycleActivity.class);
                startActivity(intent);
                break;
        }
    }
}
